# Include headers
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/src)
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR}/tools)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})

SET(BACKUP_CXX_FLAGS ${CMAKE_CXX_FLAGS})
INCLUDE(${CGAL_USE_FILE})
SET(CMAKE_CXX_FLAGS ${BACKUP_CXX_FLAGS})

# Enumerate source files
FILE(GLOB_RECURSE TEST_SRC_FILES *.cpp)
FILE(GLOB_RECURSE TEST_INC_FILES *.h *.inl)

ADD_EXECUTABLE(wires_tests ${TEST_SRC_FILES} ${TEST_INC_FILES})
TARGET_LINK_LIBRARIES(wires_tests ${GTEST_BOTH_LIBRARIES} Mesh lib_wires)
ADD_CUSTOM_COMMAND(TARGET wires_tests POST_BUILD COMMAND wires_tests)
